<?php 
	
namespace app\balance\controller;
use think\Db; // 引用DB类
use think\Request;
use think\Session;

class Balance
{

    // http://127.0.0.1:85/index.php?s=/tdled/test
    /*
    {
        "GDH": "AK1970254",
        "LSM": "002"
    }
	*/
    public function index($id){
    	$balance	= Db::table("balance")
    				-> where("user_name",$id)
    				-> column("balance_money");
    	return json(["data"=>$balance]);
    }
    
}
